﻿using System.ComponentModel.DataAnnotations.Schema;

namespace RBAC.Domain.MaterialManage
{
    /// <summary>
    /// 物料分类实体
    /// </summary>
    [Table("MaterType")]
    public class MaterType : BaseEntity
    {
        /// <summary>
        /// 分类编码
        /// </summary>
        public string? TypeCode { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string? TypeName { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public string? Unit { get; set; }

        /// <summary>
        /// 分类状态：正常、禁用
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 流水号长度
        /// </summary>
        public int? Lenght { get; set; }

        /// <summary>
        /// 供应方式：采购、自制、委外
        /// </summary>
        public string? SupplyMode { get; set; }

        /// <summary>
        /// 父ID
        /// </summary>
        public long? ParentId { get; set; }
    }
}
